Connect areas to lines (fixes #476)