fixed return value of seek method