prevent crash (unfinished)