Fixes undefined view in transition bug