Pointer bugfix