Fixed error caused by change to category() constructor.