fixed crashing issue, fixed slots again