fixed problem with RSpace termination