Fix bug when processing whole plate