Fix unchecked warnings