fixed button delay bug