bug fix for pics