fix bugs in device-width and text.align