fix strict mode parsing (closes #4)