fixup active window problem

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>