FIX: not initialized variable when resource don't exists.