Fixes #1 error during export action in plans controller
Fixes #1 error during export action in plans controller