bug fix: illegal seek