fix attrs sent to server