fixed number typecasting issue