fix a bug with bamei