Fix valid function for the first call
[2.0.0] Fix seek function
Merge pull request #2424 from alkana/2.0.0

Fix valid function for the first call