Fixed selected bug