Fixed issue with makeElement in some browsers