fixed bug in setter of iteration metrics