Fixing colorbar rendering bug