fixing display errors