fix visual errors for direct bitmap access