fixed disappearing button bug