fixes bug that misaligned assignment keys with assignment values