fixed thin run in production problem