Fixed runtime exception