Fixed faulty action Listener.