Fix incorrect property generation