Fixed an issue with XDisplays