fix discount flatpages