Fixed bug with cons