Changed substring to bug field to limit to integer sizeto 6 decimals