Fixed crash error.