fixed typos
fixed query to get existing metrics