fix bug in GET statements