fix a mistake done on MAIN_DIR (todo : improve this to make it more generic)