fixed compatibility bug