fixed bug relating to letter casing

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>