mineLayer bug fixed