Fixed simultaneously firing events on buttons