Remove useless blocks