Fix sapphire api in action handler