fixing wrong resolution