fixed Device model with pk field