Fixed MineLayer problem.

Signed-off-by: sigilworks <tim@sigilworks.com>