fix role resource save issue