fix the issue with randr