Fix syntax errors
Prevent onSelected callback from being called at initialization