fixed error in case of no closest uni