fix for no period in database