Fixed "Illegal seek" errors