Implicit integer conversion bugfix