Fixed int bug