fixed some simple errors that were causing rules to not be applied