Fix "property in partition is not set" bug 
Clean code and warn