Fixes ride closing errors