fix for saving workspace

@devoncarew