fixed bug that made Display not work