Pointer type bugfix