fixed an error with portal_workflow jstavel/edeposit#55