Fixed immidiate crash problem