fixed error of not displaying properly