Fixing variable pointer