Fixed bug with covenant