Finally fixed the initialization problem with context properties