Fixed a drawing problem when draw on cached bitmap