fixing condition check for fixing dict props, test