fix missing end sample data