Fixed minor bug with large consequences