Fixing main file