fixed dirty check