Fix issues with static files and errors