fix for random crashing with access error