fixbug on selectedCell