Error in export statement