resolve a bug