fix bug in agreement screen