Fixes an issue with the sign of sdot