fix method declaration error in action classes (fixes #3405)