fixing proximity issue not being set