bug in layer loader