fixed error on wrong call