fix for empty id in active_model