Fix for different resolution