Fixed return values from primitive functions.