fix compiler warnings in selection utility functions