Fix x100int function