Fixes main file