Fixed various sequence issues