Fixed some device configuration problem.