Fixed classcast exceptions
Merge pull request #3 from balabhv/vbWorking

Fixed classcast exceptions