Fixed bug in bitmap marking.