Fix bug if swift key is empty