Got -1 screen code and fixed the exceptions