fixed int bug