fixed old bug where the 'this' context was lost by using an inner 'function'; bugfix version bump