Fixed deprecated use of live

Fixes issue using @galitskyd 's suggestions.

All tests pass.