Fixes main