Fixed toolbar resize bug