fixed a bug where region was improperly upcased