fixed deploymen bugs - no errors on local dist