Fixed a name error on producing Shape files