fixed constraiting of coded attributes