Fixed crash in Program