Used array_splice to remove a line

Fixed #80