Prevent more element does not exist errors