fix capitalize bug