Fixed mistreatment of pointer value