bugfix: seek function