fix small bug, test works