Fixed some bugs on WPM1 and FuMalik algorithms