fixed small bug (make sure tape has at least 1 element)