Add missing variables to error pages