Fix canspawn declaration