negative pixel bug fix