Solving crash in OceanEntity