Fixing small bug