fix -main error