Fix myresource/marketplace navigation
Fix problem overwriting variables in the SafeWriter class