fixed backwards compat bug