fixed real number bug