fix app model detection