Removing unecessary extension