fixed bug in commitAnswer