Fixed a null pointer dereference bug. Partial solution to the rules tab
resizing, some way to force resize is needed.