fixes: "TypeError: Cannot read property source of null"