fixing errors from logs