Bug fix variable collision $k and $i in displayq with question code