fixed bug of binding of class "Spawn"