fix selecting backend based on priority

Only got `Memory` backend on osx.