Fixed undefined index on Slab
Replaced printf with echo