pointer bugfix