fixing apostrophe bug