add error handler for fastcgi
fix some short length caused bug