fix no object problem and many errors problem