fix possible but very strange crash