local variable 'current_own' referenced before assignment