Fixed overflow errors for the editor area