Fixed bugs in the parser for adding multiple metrics for same host