Fixed discard primitive logic.