correction js flat bet unity