BPM extracting routine fix