fix a bug about using the wrong area for best YPA