Fixed bug : removing reference object problem