For fix a crashing issue