Fixed logging usage of apply