Corrected bug caused by two main() functions in different packages