fixed; CastError race condition