Fixed infinite event loop when using the continuous button.