fix fileSource pointer