Fixed bug: text can be drawn at incorrect positions on some devices