Add missing self to module in check_state()