fixing 'ctx not defined' bug
Merge pull request #5 from thlorenz/master

fixing 'ctx not defined' bug