Correctly set source on page load