fixed bug with constant shifts