Fixed bug with hidpi displays