Fixed problem with using id attribute with apostrophe.

Needs a better solution, but the current one stop the crash