fix diff locale when refreshing bug in production mode;
fix /messages/new path problem;