Fix allow float for unit size