bug fixed in slot implementation