fixed file injection so it reloads properly