Fixed no HEAD issue with gam
Fixed gim and gam quoting
Fixed gam