Remove useless code to avoid inconsistency