fixed error with compatibility