Prevent go out of the workspace... fix issue #425.