Fixed some problems when loading properties into the context.