Fix wrong select call