fix position problem of alttab, add two functions for debug