fixed display bugs