fixing ag smart case