solves a small bug