Fix for 'operation not supported' exception