fixed a bug with capitalizations