Fixed refresh on layer update.