Added an ugly resolution hack.