Package App Model Gateway REST API fix