flow fitting error due to the accuracy lost from variable casting solved