fixed bug when device_serializer gets subclassed