Fixed segfault on forgetting tape length argument