Fixed small bug with previous commit