Added a small bug fix