Fixed issue where page was not rendering because of type check