Fixing function address error