fixes for the activity preview