Fixed bug in GET code