Several CSS bugs fixed