fixed access to coerceIntegerPrimaryKey in Modal class functions