Fix build of shell
Remove useless operation
Reorder resources in Resource::Create()