Fixed crash in MainActivity