Fixed mod of context.temp so it only happens when the baseUrl has changed.