Fix dirty editors check