Fix build warnings for number property