also filter on can_allocate

It is necessary to also filter on can_allocate when mixing disable and
enable.