Fixed a merle code bug