BUG FIX: wrong use of slice