Fix bugs in alpha beta filter.