fixing a bug in codrspace that was breaking a script