Working to q, sometimes throws error due to frame size stuffs