fixing some errors caused by css