Fix automatic prefix generator