Workaround for bad segments alignment