Modified stefan problem