fixing ag bug
fixing ag