Resolving crash errors