Set framelen to 0; it might be used without being initialized