Fix dist return value