Fixes number format exception.