Fixes issues in main.c
remove main issues