Fix accesing metrics before selecting project properly