Fix Device resolution