Fix bug for release and map