fixed the bug about bounds