fixes #261: Prevent duplicate main in the list of entries