Bug fix for AB4 method