Correcting serious bugs (now using RL)