fixed equation issue when only number entered