solve a bug