Fixed a minor bug in adding an application to a workspace