Fixes incorrect submit button detection.