fixes #2739
Merge pull request #2742 from tonydspaniard/2739-rest-createaction-bug

fixes #2739