fix custom resolution maximum