fixes to stake