find and fix a BUG