Avoid error in some edge cases