Fix wrong IDs on view creation