autonomous agent bug fixes