Fixed some bugs in alpha beta vector code