Fixed logging statements