Fix some bugs like static app not send status 200