fixed bug for mixed float