fixed problems with defines for fast_mode