Fix double function call