Fix non-serious script error when generating new slot