fixed bug in Source_update.cpp