patch to gs helpers as a workaround to a possible gs bug

Please don't pull it for now. fix #1284