Fixed an issue where background shape wasn't always getting cleared.