A minor fix for swift