Fixed typo in the setRequiredLocation method