fixed background clearing bug