Fixed pre processor bug. Closes #1245