casting bug and percentage