Fix some bitmap stuff.