bug fix for hide callback