fix somes issues with runCloud behavior