fixed small issue for non typescript files