fix issue with randr