float/int mismatch fix