Fixed unchecked warnings