Fix error on compilation and with pointers