Fixed crashes
Fixed functions being scheduled twice + better sword