Fixes in action, not defined if called from outside document class