Fixed loading of common functions.