Fix for resource edit!