Fixed resize crash in play mode.