Fixed bug in bitmap