fix bug in amplitude guessing