fixed bug in backwards compatibility