Fix PC interface bug

* fscommand function only can be used in document-class.