Fix encrypt intent

Fix #750