Renamed extension and fixed logical error