fix displaying bug