Fix logic on aspect ratio