find and solve a bug