workaround fix for nullpointer exceptions occuring for FoC