Fix the available pointer checking

Check those pointers checking, whether it is available.