Fixing bug with rearranging spec elements