Restore cursor when switch files