fixing bad log call