Improved speed of listing laws using a prefetch.
Fixed error caused when law has no type.