Delete Layer button fix.