No longer crashes when not html