Fixes bug which combines columns incorrectly