fix to duplicate short_id creation problem for resource