fixing some minor agree bugs