Fixed #378.

Not a nice fix but at least works...

Oh emh, it fixes #377 not #378, aww I did a mess with numbers :S