Fix wrong resource in cleanup