Changed order of functions

cause order