Fixed a bug in handeling centerlines