fixed small DB bug