fixed bug with alpha-beta