bugfix: missing assignment of return value