Fixed buggy loading of files in the web application