Fixed static resources not mapped bug + error pages bug