Fixed a small bug from the last commit