fixed a probable bug.