Updated get_once for get_once undefined method  and EOFError