fixing rmdj bug