Tesla recalls nearly half a million cars over safety issues