fix bug and deployment