fix to rule size bug