Fix editor black screen at start