Fix for miss percentage calculation