Fixed fatal error due to unexpected element.