fix Ajax for no aspect ratio is set