Changed the extent parameter in all spots

Changed the extent parameter in all spots