Status control and bug fix-- Manli