fix wrong call to logger