Fixed empty settings values

Closes #1164