Fix for undefined preferencetype