fixed a probable bug