a bug and fix