Bug fix on printing final answer.