Fixed splitting to not cut contents in half.