Fix wrong sequence lengths