fixed bug with staff d