Fixed an unnecessary end