fixed bugs on missing css and js.