fixed the problem of erasing blocks drawing