defective by-law