bug fix loading html from source file