Solves a  in non-object state bug