fix bug setting AT values