Fixed bugs in BitmapManagers