fixed weird display errors