fixed slot unbound error