how can i resolve the object variable not set error?