on complete isn't working for some reason. Debug