fixing app crash