Merge pull request #3 from balabhv/vbWorking

Fixed classcast exceptions