Fixed all runtime exceptions