fixed "when:fetched" event to work with jquery promises