fix editor not ready