fix "implicit conversion from integer to pointer"