Fix bug in Layer_Bitmap