fixed some issues with state lines