Fix SHA handling