Fix display not resizing properly, resolves #62