fixed an error formatting bug