Fix frames output