Fix #786 line source problem