Fixes #55 Problems with external contexts

I'm not too familiar with this library, so maybe I'm just covering other problems, but it worked for me so far.