[fix] missing convertion in the loop