Fix reversed alignment adjustment (fixes #999)