fixed bug in display