Fixing null reference error
Fix for deleting configurations