Fix view source bug