Fixed background and collision bug