Fix for key sequencing order