fix a bug in prometheus