Fixed the bug which would not insert the correct answer into the DB.