fix issue with auto generate resources when GET