fixed empty list bug