fix for strange bug when using with EndlessAdapter