fix object is not function