fixed button hiding bug