bug fix to maintain backwards compat