Updating: fixing a bug caused by selvar -> selptr.