fix 'gt' behavior to work correctly