fixed bug in workflow