Fix button behaviors.