Fixing initialize so that it correctly swaps between in context and defaults