Fixed internal server error due to reference to non existance Object's property