fixed logger apply call problem