Fix - convert PI object ID from preferences to an integer