fix missing code for infinite dropdown