Fixsed a throw exeption