Correct setting of DSM and ST24 flags