fix type of set_seekfunction