Added default value for the keepPrevSelection option