fix for invalid entries