Removed debug code
Fixed background bug