Fix a bug when no context is given. Fixes #1