Try verifying your code against this version by @Konrad_K_Sobon.
Get/Set Location of Schedule graphics follow up