fixed a bug with background