Palm gallery fix