Bugfix to O to make it work on integer inputs.