Fixed exception (closes: #361)