empty list bug fixed