Fixed errors found on browser console