Fixed some refs

tsc doesnt show any errors but Travis does