remove "undefined" errors