Fixed wrong button behaviour.