fixed wrong string splitting