Fixed bug for loading css and js