fixed wrong options being retrieved for json root