Fixed crash with NumberFormatException