fix bug in error handle in production
fix bug in array_helper