Fix wrong locals ref