fixed obscure bug with file source