fixed wrong splice