small bug fix for handling handler.txt