resolves error in demo