changed current variable to context and it seemed to fix problem, just a...

... hunch though and will need to be tested, not sure if its really correct