Fix error check, and rename "fill" to the more semantic "dict".