Fixed issue with autoescape and parent function