added validation when releasing last barnyard