Fixed for cases of multiple backends
Merge pull request #11 from agiliq/multiple-backends

Fixed for cases of multiple backends