fixes asserion crrash