minor bugfix and spelling correction