fix: set the hasCustomPrimaryKey to true when it found