fixed bugs on backgrounds