Fixed errors with new rule functions