Fixed compilation error due to uncheked return value.