Fixed bug in select population