fixed bug in currentWorkspaceAction