fixed NullPointerException and IllegalArgumentException in GUI