Fixed bug with deploy authentication