fix the ideal foreground changes