fixed backwards compatibility bug