fix method declaration error in action classes (fixes #3420, BP from #3405)

fix method declaration error in action classes (fixes #3420, BP from #3405)

(cherry picked from commit 0e5c3ff1759e6a35048b3eb4367dd38057c53a44 )