fix log rule