small bug in saveSource