fixed firstfree script