solve object is not function bug