fix issue with recirsive set to false

It wasn't actually possible to turn the recursiveness off