minor
fix prevSelected is null error