Rewrote fix_blockname() function for increased speed
Rewrote unfix_blockname() function