Fixed bug in corrections ASCII file parsing.

The previous version of the code only works for binnings in one or two variables: for three or more it breaks.