fixed noneMediaFunction handling