Fix production url
Fix promise resolver