Fixed nasty bug in float/double