Fixed bug in complete_workshare