fix rare crash related to empty ginput return