Fixed logging issues with shift values.