BUG: Pass flags into NewFromDescr

otherwise the writable flag does not get set correctly apparently.