Fixed resolution issue on some devices