Fixed error in context init.