Fixed superfluous code