Bugfix: check the correct for permanent pointers