fixed bug with league declaration