bug fixing

fixed bug with odd number of problems